Neurosis Engine
physics.h
Go to the documentation of this file.
00001 
00002 // Neurosis Engine - LP23.com
00003 // Copyright © Luigi Pino. All rights reserved.
00004 
00005 /***************************************************************************/
00006 
00007 #ifndef _NEUROSIS_ENGINE_PHYSICS_H_
00008 #define _NEUROSIS_ENGINE_PHYSICS_H_
00009 
00010 /***************************************************************************/
00011 
00012 class CNeurosisPhysics {
00013   public:
00014     CNeurosisPhysics();
00016     ~CNeurosisPhysics();
00017 
00019     static float3 Calculate_Closest_Point_On_Line_2D(float3 *linePoint1, float3 *linePoint2, float3 *point);
00023     static float3 Collision_Model_VS_Model(CNeurosisModel *model1, CNeurosisModel *model2, int iMesh);
00025     static bool   Collision_Sphere_VS_Model(CNeurosisModel *sphere, CNeurosisModel *model, int iMesh, bool react);
00028     static bool   Collision_Sphere_VS_Model_2D(CNeurosisModel *sphere, CNeurosisModel *model, int iMesh, bool react);
00030     static bool   Collision_Sphere_VS_Sphere(CNeurosisModel *sphere1, CNeurosisModel *sphere2, float timeStep, bool react);
00031 };
00032 
00033 /***************************************************************************/
00034 #endif